package org.utils.xml.xmlupdater;

import org.utils.common.InitException;
import org.utils.xml.XMLDataNode;

public abstract class AbstractRule
{
  private XMLDataNode config = null;

  public AbstractRule(XMLDataNode node)
  {
    config = node;
  }

  public XMLDataNode getXMLDataNode()
  {
    return config;
  }

  public abstract void init(XMLDataNode root) throws InitException;
  public abstract XMLDataNode apply(XMLDataNode root);
}

